package com.kj.report.model;


/**
 * POJO:TsIndexType
 * 
 * @author ZJW
 * @date 2017-10-31
 */
public class TsIndexTypeView{
	
	private String	indexTypeId;		
	private String	simpleDescription;		 /* 简单描述 */ 
	private String	indexName;		 /* 指标名称 */ 
	private String	indexCode;		 /* 编码 */ 
	private String	indexType;		 /* 1 、膳食建议 2、营养 3、运动 */ 
	private String	personality;		 /* 个性化建议 */ 
	private String	proposal;		 /* 膳食建议 */ 

	// Constructor
	public TsIndexTypeView() {
	}

	public String getIndexTypeId() {
		return indexTypeId;
	}

	public void setIndexTypeId(String indexTypeId) {
		this.indexTypeId = indexTypeId;
	}

	public String getSimpleDescription() {
		return simpleDescription;
	}

	public void setSimpleDescription(String simpleDescription) {
		this.simpleDescription = simpleDescription;
	}

	public String getIndexName() {
		return indexName;
	}

	public void setIndexName(String indexName) {
		this.indexName = indexName;
	}

	public String getIndexCode() {
		return indexCode;
	}

	public void setIndexCode(String indexCode) {
		this.indexCode = indexCode;
	}

	public String getIndexType() {
		return indexType;
	}

	public void setIndexType(String indexType) {
		this.indexType = indexType;
	}

	public String getPersonality() {
		return personality;
	}

	public void setPersonality(String personality) {
		this.personality = personality;
	}

	public String getProposal() {
		return proposal;
	}

	public void setProposal(String proposal) {
		this.proposal = proposal;
	}
	
	@Override
	public String toString() {
		return "TsIndexTypeVo [indexTypeId=" + indexTypeId + ", simpleDescription=" + simpleDescription + ", indexName="
				+ indexName + ", indexCode=" + indexCode + ", indexType=" + indexType + ", personality=" + personality
				+ ", proposal=" + proposal + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((indexCode == null) ? 0 : indexCode.hashCode());
		result = prime * result + ((indexName == null) ? 0 : indexName.hashCode());
		result = prime * result + ((indexType == null) ? 0 : indexType.hashCode());
		result = prime * result + ((indexTypeId == null) ? 0 : indexTypeId.hashCode());
		result = prime * result + ((personality == null) ? 0 : personality.hashCode());
		result = prime * result + ((proposal == null) ? 0 : proposal.hashCode());
		result = prime * result + ((simpleDescription == null) ? 0 : simpleDescription.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TsIndexTypeView other = (TsIndexTypeView) obj;
		if (indexCode == null) {
			if (other.indexCode != null)
				return false;
		} else if (!indexCode.equals(other.indexCode))
			return false;
		if (indexName == null) {
			if (other.indexName != null)
				return false;
		} else if (!indexName.equals(other.indexName))
			return false;
		if (indexType == null) {
			if (other.indexType != null)
				return false;
		} else if (!indexType.equals(other.indexType))
			return false;
		if (indexTypeId == null) {
			if (other.indexTypeId != null)
				return false;
		} else if (!indexTypeId.equals(other.indexTypeId))
			return false;
		if (personality == null) {
			if (other.personality != null)
				return false;
		} else if (!personality.equals(other.personality))
			return false;
		if (proposal == null) {
			if (other.proposal != null)
				return false;
		} else if (!proposal.equals(other.proposal))
			return false;
		if (simpleDescription == null) {
			if (other.simpleDescription != null)
				return false;
		} else if (!simpleDescription.equals(other.simpleDescription))
			return false;
		return true;
	}
}
